<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Laporan Penjualan Harian</title>
<?php $this->load->helper('HTML');
echo link_tag('css/style2.css');
echo link_tag('images/favicon.ico','shortcut icon','image/x-icon');
?>
</head>
<?php

header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=OMset_cucu_".$namaBulan.".xls");
header("Pragma: no-cache");
header("Expires: 0");
?>
<body>
<h2>Omset Cucu</h2>
<h3>bulan <?php echo $namaBulan;?></h3>
<table border="1">
<tr>
	<th>No.</th>
	<th>Dealer</th>
	<th>Upline</th>
	<th>Total Omset</th>
</tr>
<?php 
	$no = 1;
	//echo $dataArray;
	//echo $strkode_dealer.", ".$bulan."<br />";
	for($i=0; $i<sizeof($dataArray);$i++){
		//echo "".$dataArray[$i]['strkode_dealer'].", ";
		echo "<tr><td>".$no++."</td>";
		echo "<td>".$dataArray[$i]['strnama_dealer']."</td>";
		echo "<td>".$dataArray[$i]['strnama_upline']."</td>";
		echo "<td>".$dataArray[$i]['total_omset']."</td></tr>	";
	}
?>
</table>
</body>
</html>